package com.fun_ordering.components;

/**
 *作用：储存常量
 *方法名：
 *参数:
 *返回值:
 */
public class CodeComponents {

    //操作状态
    public final static Long SUCCESS_CODE = 10000L;
    public final static String SUCCESS_MSG = "操作成功";
    public final static String FAILED_MSG = "操作失败";
    public final static Long FAILED_CODE = 10001L;

    //刪除状态
    public final static Integer DELETE_OK = 0;   //删除成功
    public final static Integer DELETE_NO = 1;   //删除失败

    //菜品的状态
    public final static Integer DISH_INFO_OK = 1;//正常出售
    public final static Integer DISH_INFO_NO = 0;//菜品售空

    //员工任务状态
    public final static Integer EMPLOYEE_TASK_OK = 1;//已完成
    public final static Integer EMPLOYEE_TASK_NO = 0;//未完成

    //员工在职状态
    public final static Integer EMPLOYEE_OK = 1;//在职
    public final static Integer EMPLOYEE_NO = 0;//离职


    //订单状态
    public final static Integer ORDER_MAKING = 0;//出餐中
    public final static Integer ORDER_FINISH = 1;//已出餐
    public final static Integer ORDER_CANCEL = 2;//订单已取消
//    public final static Integer ORDER_CANCEL = 3;//订单取消处理中
    public final static Integer ORDER_COMMENT_NO = 4;//待评价
    public final static Integer ORDER_COMMENT_OK = 5;//已评价

    //支付状态
    public final static Integer PAY_FAIL = 0;//未支付 (默认）
    public final static Integer PAY_SUCCESS = 1;//支付成功
    public final static Integer PAY_REFUND_ING = 2;//退款中
    public final static Integer PAY_REFUND_SUCCESS = 3;//退款成功
    public final static Integer PAY_REFUND_FAIL = 4;//退款失败

    //职位
    public final static Integer POSITION_MANAGER = 0;//店长
    public final static Integer POSITION_EMP = 1;//普通员工



}
